package com.spring.datasource.dao;


import com.spring.datasource.bean.Person;
import com.spring.datasource.util.TargetDataSource;
import org.apache.ibatis.annotations.Mapper;

//@Mapper
public interface IPersonDao {
    public Person getPersonById();

    /**
     * 从sms数据源中获取用户信息
     */
    Person selectByOddUserId(int id);

    /**
     * 从job数据源中获取用户信息
     */
    @TargetDataSource("job")
    Person selectByEvenUserId(int id);
}
